package com.frxuexi.park2302.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.alibaba.android.arouter.launcher.ARouter
import com.frxuexi.lib_base.mvi.BaseViewFragment
import com.frxuexi.park2302.R
import com.frxuexi.park2302.databinding.FragmentServiceBinding


class ServiceFragment : BaseViewFragment<FragmentServiceBinding>() {
    override val binding: FragmentServiceBinding by lazy { FragmentServiceBinding.inflate(layoutInflater) }


    override fun initView() {
        binding.servicePark.setOnClickListener {
            ARouter.getInstance().build("/app/ParkActivity").navigation()
        }
        binding.serviceRepair.setOnClickListener {
            ARouter.getInstance().build("/repair/RepairActivity").navigation()
        }
        binding.serviceVisit.setOnClickListener {
            ARouter.getInstance().build( "/visit/VisitActivity").navigation()
        }
        binding.serviceSign.setOnClickListener {
            ARouter.getInstance().build("/mysign/MySignActivity").navigation()
        }

        binding.serviceNews.setOnClickListener {
            ARouter.getInstance().build("/app/NewsActivity").navigation()
        }

        binding.serviceNotice.setOnClickListener {
            ARouter.getInstance().build("/app/NoticeAddActivity").navigation()
        }
    }
}